var express = require('express');
var app = express();

app.set('views', __dirname + '/views'); // set views directory
app.use(express.static(__dirname + '/public')); //static files
app.engine('html', require('ejs').renderFile); // make ejs render .html files-
app.use(express.cookieParser()); // need to support sessions
app.use(express.session({secret: 'super duper secret'}));
app.use(express.json());       // to support JSON-encoded bodies
app.use(express.urlencoded()); // to support URL-encoded bodies
require('./controllers')(app); //load every route controller






app.listen(3000);


